package com.zbkj.crmeb.store.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
@Accessors(chain = true)
public class BatchUpdateShipTempRequest implements Serializable {

    @ApiModelProperty(value = "商品id集合")
    @NotNull
    private List<Integer> productIdList;

    @ApiModelProperty(value = "运费模板Id")
    @NotNull(message = "运费模板不能为空")
    private Integer templateId;

    @ApiModelProperty(value = "商品类型  1:云仓商品  2：自建商品")
    @NotNull(message = "商品类型不能为空")
    @Range(min = 1, max = 2, message = "商品类型  1:云仓商品  2：自建商品")
    private Integer productType;

}